#!/usr/bin/env python
#-*- coding:utf-8 -*-


import os

from google.appengine.ext import webapp

from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template

from google.appengine.ext import db


def echo(self,value):
    self.response.out.write(value)

class MainPage(webapp.RequestHandler):
    def get(self):
        self.response.headers["Content-type"]="text/html"
        echo(self,"<meta charset='UTF-8'/>")
        template_values = {
            'key': value
        }

        path = os.path.join(os.path.dirname(__file__), 'index.html')
        echo(template.render(path, template_values))

application = webapp.WSGIApplication([('/', MainPage)],
                                     debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
